import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  //mode: 'history',
  routes: [
    //首页
    {
      path: '/',
      name: 'index',
      component: function (resolve) {
        require(['./../pages/home/home'], resolve)
      }
    },
    //测试页面
    {
      path: '/test',
      name: 'test',
      component: function (resolve) {
        require(['./../pages/test'], resolve)
      }
    },

    // // 登录
    // {
    //   path: '/login',
    //   name: 'Login',
    //   component: function (resolve) {
    //     require(['./../pages/home/login'], resolve)
    //   }
    // },

    //待办事项
    {
      path: '/todoList/:type',
      name: 'todoList',
      component: function (resolve) {
        require(['./../pages/schedule/todoList'], resolve)
      }
    },
    // //待办事项--已审批
    // {
    //   path: '/doneList',
    //   name: 'DoneList',
    //   component: function (resolve) {
    //     require(['./../pages/schedule/doneList'], resolve)
    //   }
    // },
    //我的申请
    {
      path: '/myApplication',
      name: 'MyApplication',
      component: function (resolve) {
        require(['./../pages/schedule/myApplication'], resolve)
      }
    },

    
    //人事薪酬
    //我的信息
    {
      path: '/detail',
      name: 'UserDetail',
      component: function (resolve) {
        require(['./../pages/userInfo/UserDetail'], resolve)
      }
    },
    //我的下属
    {
      path: '/subordinates',
      name: 'Subordinates',
      component: function (resolve) {
        require(['./../pages/subordinates/subordinates'], resolve)
      }
    },
    //工资单
    {
      path: '/payroll',
      name: 'Payroll',
      component: function (resolve) {
        require(['./../pages/payroll/Payroll'], resolve)
      }
    },

    //时间管理
    // 考勤日历
    {
      path: '/attendanceCalendar',
      name: 'AttendanceCalendar',
      component: function (resolve) {
        require(['./../pages/attendanceCalendar/attendanceCalendar'], resolve)
      }
    },
    // 休假
    {
      path: '/vacation',
      name: 'Vacation',
      component: function (resolve) {
        require(['./../pages/vacation/vacation'], resolve)
      }
    },
    // 销假
    {
      path: '/unvacation',
      name: 'Unvacation',
      component: function (resolve) {
        require(['./../pages/vacation/unvacation'], resolve)
      }
    },
    // 外出申请
    {
      path: '/goOut',
      name: 'GoOut',
      component: function (resolve) {
        require(['./../pages/goOut/goOut'], resolve)
      }
    },
    // 加班申请
    {
      path: '/overTime',
      name: 'OverTime',
      component: function (resolve) {
        require(['./../pages/overTime/overTime'], resolve)
      }
    },
    // 补卡
    {
      path: '/supplementaryCard',
      name: 'SupplementaryCard',
      component: function (resolve) {
        require(['./../pages/supplementaryCard/supplementaryCard'], resolve)
      }
    },


    //绩效培训
    // 绩效
    {
      path: '/performanceResult',
      name: 'PerformanceResult',
      component: function (resolve) {
        require(['./../pages/performance/performanceResult'], resolve)
      }
    },
    // 培训测评
    {
      path: '/evaluationResult',
      name: 'EvaluationResult',
      component: function (resolve) {
        require(['./../pages/evaluation/evaluationResult'], resolve)
      }
    },



    //新员工信息填写
    //新员工登陆
    {
      path: '/hireLogin',
      name: 'InformationLogin',
      component: function (resolve) {
        require(['./../pages/InformationCollection/Login'], resolve)
      }
    },
    {
      path: '/hireEnter',
      name: 'InformationCollection',
      component: function (resolve) {
        require(['./../pages/InformationCollection/InformationCollection'], resolve)
      }
    },
    //基础信息页
    {
      path: '/informationCollection/userInfo',
      name: 'informationCollection',
      component: function (resolve) {
        require(['./../pages/InformationCollection/userInfo/UserInfo'], resolve)
      }
    },





    /*********************入职填写信息[BEGIN]************************ */
        // 薪酬信息
        {
          path: '/compensationInformation',
          name: 'CompensationInformation',
          component: function (resolve) {
            require(['./../pages/userInfo/CompensationInformation'], resolve)
          }
        },
        //基本信息
        {
          path: '/inputInformation/basic',
          name: 'basicIpt',
          component: function (resolve) {
            require(['./../pages/InformationCollection/userInfo/editInfomation/basic'], resolve)
          }
        },
        //联系方式
        {
          path: '/inputInformation/contact',
          name: 'contactIpt',
          component: function (resolve) {
            require(['./../pages/InformationCollection/userInfo/editInfomation/contact'], resolve)
          }
        },
        //入公司前工作经历
        {
          path: '/inputInformation/theCompanyBefore',
          name: 'theCompanyBefore',
          component: function (resolve) {
            require(['./../pages/InformationCollection/userInfo/editInfomation/theCompanyBefore'], resolve)
          }
        },
    
        //教育经历
        {
          path: '/inputInformation/education',
          name: 'education',
          component: function (resolve) {
            require(['./../pages/InformationCollection/userInfo/editInfomation/education'], resolve)
          }
        },
        //持股情况
        {
          path: '/inputInformation/chigu',
          name: 'chigu',
          component: function (resolve) {
            require(['./../pages/InformationCollection/userInfo/editInfomation/chigu'], resolve)
          }
        },
        
        //档案信息
        {
          path: '/inputInformation/outf',
          name: 'outf',
          component: function (resolve) {
            require(['./../pages/InformationCollection/userInfo/editInfomation/outf'], resolve)
          }
        },
        //竞业协议
        {
          path: '/inputInformation/jyxy',
          name: 'jyxy',
          component: function (resolve) {
            require(['./../pages/InformationCollection/userInfo/editInfomation/jyxy'], resolve)
          }
        },
        //资格证书
        {
          path: '/inputInformation/qualification',
          name: 'qualification',
          component: function (resolve) {
            require(['./../pages/InformationCollection/userInfo/editInfomation/qualification'], resolve)
          }
        },
        //语言能力
        {
          path: '/inputInformation/language',
          name: 'language',
          component: function (resolve) {
            require(['./../pages/InformationCollection/userInfo/editInfomation/language'], resolve)
          }
        },
        //亲属信息
        {
          path: '/inputInformation/family',
          name: 'family',
          component: function (resolve) {
            require(['./../pages/InformationCollection/userInfo/editInfomation/family'], resolve)
          }
        },
        //银行信息
        {
          path: '/inputInformation/bank',
          name: 'bank',
          component: function (resolve) {
            require(['./../pages/InformationCollection/userInfo/editInfomation/bank'], resolve)
          }
        },
        /*********************入职填写信息[END]************************ */






    //个人信息页
    {
      path: '/main',
      name: 'userBase',
      component: function (resolve) {
        require(['./../pages/userInfo/UserInfo'], resolve)
      }
    },



    //个人信息系列
    {
      path: '/Information/basic/:cnta',
      name: 'pbasicif',
      component: function (resolve) {
        require(['./../pages/userInfo/editInfomation/basic'], resolve)
      }
    },
    {
      path: '/Information/theCompanyBefore/:cnta',
      name: 'ptheCompanyBefore',
      component: function (resolve) {
        require(['./../pages/userInfo/editInfomation/theCompanyBefore'], resolve)
      }
    },
    {
      path: '/Information/education/:cnta',
      name: 'peducation',
      component: function (resolve) {
        require(['./../pages/userInfo/editInfomation/education'], resolve)
      }
    },
    //培训经历
    {
      path: '/Information/training/:cnta',
      name: 'ptraining',
      component: function (resolve) {
        require(['./../pages/userInfo/editInfomation/training'], resolve)
      }
    },
    {
      path: '/Information/qualification/:cnta',
      name: 'pqualification',
      component: function (resolve) {
        require(['./../pages/userInfo/editInfomation/qualification'], resolve)
      }
    },
    //语言能力
    {
      path: '/Information/language/:cnta',
      name: 'planguage',
      component: function (resolve) {
        require(['./../pages/userInfo/editInfomation/language'], resolve)
      }
    },
    //计算机能力
    {
      path: '/Information/computer/:cnta',
      name: 'pcomputer',
      component: function (resolve) {
        require(['./../pages/userInfo/editInfomation/computer'], resolve)
      }
    },
    //奖惩情况
    {
      path: '/Information/rewardsAndPunishments/:cnta',
      name: 'prewardsAndPunishments',
      component: function (resolve) {
        require(['./../pages/userInfo/editInfomation/rewardsAndPunishments'], resolve)
      }
    },
    //亲属信息
    {
      path: '/Information/family/:cnta',
      name: 'pfamily',
      component: function (resolve) {
        require(['./../pages/userInfo/editInfomation/family'], resolve)
      }
    },
     //紧急
    {
      path: '/Information/emergent/:cnta',
      name: 'pemergent',
      component: function (resolve) {
        require(['./../pages/userInfo/editInfomation/emergent'], resolve)
      }
    },
    //银行
    {
      path: '/Information/bank/:cnta',
      name: 'pbank',
      component: function (resolve) {
        require(['./../pages/userInfo/editInfomation/bank'], resolve)
      }
    },
    //社保
    {
      path: '/Information/socsec/:cnta',
      name: 'psocsec',
      component: function (resolve) {
        require(['./../pages/userInfo/editInfomation/socsec'], resolve)
      }
    },
    // {
    //   path: '/informationCollection/userInfo/:type',
    //   name: 'InputInformationUserInfo',
    //   component: function (resolve) {
    //     require(['./../pages/InformationCollection/userInfo/InputInformation'], resolve)
    //   }
    // },
    // {
    //   path: '/information/userInfo/:type/:cnta',
    //   name: 'InformationUserInfo',
    //   component: function (resolve) {
    //     require(['./../pages/userInfo/InputInformation'], resolve)
    //   }
    // },
    {
      path: '/guideTo',
      name: 'GuideTo',
      component: function (resolve) {
        require(['./../pages/guideTo/GuideTo'], resolve)
      }
    },
    {
      path: '/prove',
      name: 'Prove',
      component: function (resolve) {
        require(['./../pages/prove/Prove'], resolve)
      }
    },
    
    
    {
      path: '/dimission',
      name: 'Dimission',
      component: function (resolve) {
        require(['./../pages/dimission/Dimission'], resolve)
      }
    },
    {
      path: '/dimissionDetail',
      name: 'DimissionDetail',
      component: function (resolve) {
        require(['./../pages/dimission/DimissionDetail'], resolve)
      }
    },
    
    //工资单
    {
      path: '/payrollDetail',
      name: 'payrollDetail',
      component: function (resolve) {
        require(['./../pages/payroll/payrollDetail'], resolve)
      }
    },
    
    

    
    // 补卡
    {
      path: '/supplementaryCardDetail',
      name: 'SupplementaryCardDetail',
      component: function (resolve) {
        require(['./../pages/supplementaryCard/SupplementaryCardDetail'], resolve)
      }
    },
    //员工档案
    {
      path: '/archives',
      name: 'Archives',
      component: function (resolve) {
        require(['./../pages/userInfo/archives'], resolve)
      }
    },
    
    //转正审批
    {
      path: '/formal',
      name: 'Formal',
      component: function (resolve) {
        require(['./../pages/formalStaff/formalSt'], resolve)
      }
    },
    //转正审批2--只显示
    {
      path: '/formalShow',
      name: 'FormalShow',
      component: function (resolve) {
        require(['./../pages/formalStaff/formalSt2'], resolve)
      }
    },
    // //离职审批
    // {
    //   path: '/wastage',
    //   name: 'Wastage',
    //   component: function (resolve) {
    //     require(['./../pages/formalStaff/wastage'], resolve)
    //   }
    // },
    // //离职审批2--只显示
    // {
    //   path: '/wastageShow',
    //   name: 'WastageShow',
    //   component: function (resolve) {
    //     require(['./../pages/formalStaff/wastage2'], resolve)
    //   }
    // },
    //解除劳动合同审批
    {
      path: '/dissolution',
      name: 'Dissolution',
      component: function (resolve) {
        require(['./../pages/formalStaff/dissolution'], resolve)
      }
    },
    //招聘录用审批
    {
      path: '/employment',
      name: 'Employment',
      component: function (resolve) {
        require(['./../pages/formalStaff/employment'], resolve)
      }
    },
    //招聘需求审批
    {
      path: '/recruit',
      name: 'recruit',
      component: function (resolve) {
        require(['./../pages/formalStaff/recruit'], resolve)
      }
    },
    // 薪资发放审批
    {
      path: '/salaryPayment',
      name: 'SalaryPayment',
      component: function (resolve) {
        require(['./../pages/formalStaff/salaryPayment'], resolve)
      }
    },
    // 公积金缴纳审批
    {
      path: '/providentFund',
      name: 'ProvidentFund',
      component: function (resolve) {
        require(['./../pages/formalStaff/providentFund'], resolve)
      }
    },
    // 岗位薪酬变动审批
    {
      path: '/payRaiseApproval',
      name: 'PayRaiseApproval',
      component: function (resolve) {
        require(['./../pages/formalStaff/payRaiseApproval'], resolve)
      }
    },
    //人员调动审批
    {
      path: '/mobilization',
      name: 'Mobilization',
      component: function (resolve) {
        require(['./../pages/formalStaff/mobilization'], resolve)
      }
    },
    //离职补偿金审批
    {
      path: '/compensate',
      name: 'Compensate',
      component: function (resolve) {
        require(['./../pages/formalStaff/compensate'], resolve)
      }
    },
    //工作移交审批
    {
      path: '/handover',
      name: 'Handover',
      component: function (resolve) {
        require(['./../pages/formalStaff/handover'], resolve)
      }
    },
    //审批链加签
    {
      path: '/visa',
      name: 'Visa',
      component: function (resolve) {
        require(['./../pages/formalStaff/visa'], resolve)
      }
    },
    //审批拒绝 pushback
    {
      path: '/pushback',
      name: 'pushback',
      component: function (resolve) {
        require(['./../pages/formalStaff/pushback'], resolve)
      }
    },
    //个人信息修改审批
    {
      path: '/infoModify',
      name: 'InfoModify',
      component: function (resolve) {
        require(['./../pages/formalStaff/infoModify'], resolve)
      }
    },
    //证明开具审批
    {
      path: '/proveModify',
      name: 'proveModify',
      component: function (resolve) {
        require(['./../pages/formalStaff/proveJd'], resolve)
      }
    },
    {
      path: '/infoupload',
      name: 'infoupload',
      component: function (resolve) {
        require(['./../pages/userInfo/infoUpload'], resolve)
      }
    },
    {
      path: '/infoUploadImage/:cFileNum/:cYesNo',
      name: 'infoUploadImage',
      component: function (resolve) {
        require(['./../pages/userInfo/infoUploadImage'], resolve)
      }
    },
    
    
    // 列表
    {
      path: '/evaluationList',
      name: 'EvaluationList',
      component: function (resolve) {
        require(['./../pages/schedule/EvaluationList'], resolve)
      }
    },
    // 测评答题
    {
      path: '/evaluationAssess',
      name: 'EvaluationAssess',
      component: function (resolve) {
        require(['./../pages/evaluation/evaluationAssess'], resolve)
      }
    },
    // 绩效面谈
    {
      path: '/performanceInterview',
      name: 'PerformanceInterview',
      component: function (resolve) {
        require(['./../pages/performance/performanceInterview'], resolve)
      }
    },
    // 绩效申诉
    {
      path: '/performanceAppeal',
      name: 'PerformanceAppeal',
      component: function (resolve) {
        require(['./../pages/performance/performanceAppeal'], resolve)
      }
    },
    // 绩效结果审批
    {
      path: '/performanceRApproval',
      name: 'PerformanceRApproval',
      component: function (resolve) {
        require(['./../pages/performance/performanceRApproval'], resolve)
      }
    },
    // 绩效结果审批详情页
    {
      path: '/performanceRApprovalDetail',
      name: 'PerformanceRApprovalDetail',
      component: function (resolve) {
        require(['./../pages/performance/performanceRApprovalDetail'], resolve)
      }
    },
    // 绩效计划审批
    {
      path: '/performancePlanApproval',
      name: 'PerformancePlanApproval',
      component: function (resolve) {
        require(['./../pages/performance/performancePlanApproval'], resolve)
      }
    },
    // 绩效计划审批详情页
    {
      path: '/performancePlanApprovalDetail',
      name: 'PerformancePlanApprovalDetail',
      component: function (resolve) {
        require(['./../pages/performance/performancePlanApprovalDetail'], resolve)
      }
    },
    // 绩效评估
    {
      path: '/performanceAssess',
      name: 'PerformanceAssess',
      component: function (resolve) {
        require(['./../pages/performance/performanceAssess'], resolve)
      }
    },
    // 绩效评估详情页
    {
      path: '/performanceAssessDetail',
      name: 'PerformanceAssessDetail',
      component: function (resolve) {
        require(['./../pages/performance/performanceAssessDetail'], resolve)
      }
    },
    // 绩效评估新增关键事件
    {
      path: '/performanceAssessAddOrModify',
      name: 'PerformanceAssessAddOrModify',
      component: function (resolve) {
        require(['./../pages/performance/performanceAssessAddOrModify'], resolve)
      }
    },
    {
      path: '/warn',
      name: 'warn',
      component: function (resolve) {
        require(['./../pages/warn'], resolve)
      }
    },
  ]
})
